package com.tianyi.dao.entity.productPhoto;

import java.io.Serializable;
import java.util.Date;

public class ProductPhoto implements Serializable {
    /**
     * id
     * 表字段 ：id
     *
     * @mbg.generated Thu Jun 11 21:15:22 CST 2020
     */
    private Long id;

    /**
     * 创建时间
     * 表字段 ：gmt_create
     *
     * @mbg.generated Thu Jun 11 21:15:22 CST 2020
     */
    private Date gmtCreate;

    /**
     * 修改时间
     * 表字段 ：gmt_modified
     *
     * @mbg.generated Thu Jun 11 21:15:22 CST 2020
     */
    private Date gmtModified;

    /**
     * 图片路径
     * 表字段 ：photo_path
     *
     * @mbg.generated Thu Jun 11 21:15:22 CST 2020
     */
    private String photoPath;

    /**
     * 关联产品id
     * 表字段 ：product_id
     *
     * @mbg.generated Thu Jun 11 21:15:22 CST 2020
     */
    private Long productId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table product_photo
     *
     * @mbg.generated Thu Jun 11 21:15:22 CST 2020
     */
    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table product_photo
     *
     * @mbg.generated Thu Jun 11 21:15:22 CST 2020
     */
    public ProductPhoto withId(Long id) {
        this.setId(id);
        return this;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table product_photo
     *
     * @mbg.generated Thu Jun 11 21:15:22 CST 2020
     */
    public ProductPhoto withGmtCreate(Date gmtCreate) {
        this.setGmtCreate(gmtCreate);
        return this;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table product_photo
     *
     * @mbg.generated Thu Jun 11 21:15:22 CST 2020
     */
    public ProductPhoto withGmtModified(Date gmtModified) {
        this.setGmtModified(gmtModified);
        return this;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getPhotoPath() {
        return photoPath;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table product_photo
     *
     * @mbg.generated Thu Jun 11 21:15:22 CST 2020
     */
    public ProductPhoto withPhotoPath(String photoPath) {
        this.setPhotoPath(photoPath);
        return this;
    }

    public void setPhotoPath(String photoPath) {
        this.photoPath = photoPath == null ? null : photoPath.trim();
    }

    public Long getProductId() {
        return productId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table product_photo
     *
     * @mbg.generated Thu Jun 11 21:15:22 CST 2020
     */
    public ProductPhoto withProductId(Long productId) {
        this.setProductId(productId);
        return this;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table product_photo
     *
     * @mbg.generated Thu Jun 11 21:15:22 CST 2020
     */
    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModified=").append(gmtModified);
        sb.append(", photoPath=").append(photoPath);
        sb.append(", productId=").append(productId);
        sb.append("]");
        return sb.toString();
    }
}